<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="u" uri="/iuie-tag"%>
<%@ taglib prefix="sys" uri="/sys-tag" %>
<%@ taglib prefix="lui" tagdir="/WEB-INF/tags" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>月分期详情</title>
</head>
<lui:context/>
<u:View basePath="/res-datum/expense" userJS="mthInstalmentDetail" userCSS="mthInstalmentDetail" delayLoadJs="false">
<body>
    <lui:dialogBody>
        <form class="m-cust m-narrow" id='mthInstalmentDetailFrm'>
			<u:dataSet id="mthInstalmentDetailSet" idField="id">
				<u:dataField name="id" display="id" visiable="false"/>
				<u:dataField name="expenseId" display="expenseId" visiable="false"/>
				<u:dataField name="productName" display="商品名称" width="120px"/>
				<u:dataField name="consumeTime" display="消费时间" width="80px"/>
				<u:dataField name="consumeAmount" display="首付金额" width="60px"/>
				<u:dataField name="currRepayNum" display="当还期数" width="60px"/>
				<u:dataField name="currRepayAmount" display="当还金额" width="60px"/>
				<u:dataField name="repayDate" display="最后还款日" width="80px"/>
				<u:dataField name="realRepayDate" display="实际还款日" width="140px"/>
				<u:dataField name="isRepay" display="是否已还"/>
				<u:dataField name="remark" display="备注"/>
			</u:dataSet>
			<!-- 获取用户信息列表ajax -->
			<lui:ajax id="findDataAjax" url="${ctx }/expense/find/mthInstalmentDetail/page/${requestScope.date}" formQuery="#mthInstalmentDetailFrm"
				type="post"/>
			<lui:datatable id="datatable" ajax="findDataAjax" sortable="true" pagination="pagination" dataset="mthInstalmentDetailSet" checkable="true"
			    multiple="false" cutLine="true" onRenderItem="MthInstalmentDetailPage.onRenderItem"/>
			<lui:pagination datatable="datatable" id="pagination" pageSize="15" pageChoice="15" showPageChoice="false"/>
			<lui:ajax id="updateRepayStateAjax" url="${ctx }/expense/update/isRepay/" onSuccess="MthInstalmentDetailPage.updateSucc"
       			type="post" contentType="application/x-www-form-urlencoded"/>
       		<lui:ajax id="updateRemarkAjax" url="${ctx }/expense/update/remark/" onSuccess="MthInstalmentDetailPage.updateSucc"
       			type="post" contentType="application/x-www-form-urlencoded"/>
        </form>
    </lui:dialogBody>
    <lui:dialogFooter>
       <button class="btn btn-default m-btn" type="button" data-dismiss="dialog-box" onclick="MthInstalmentDetailPage.close()">关闭</button>
    </lui:dialogFooter>
</body>
</u:View>
</html>